{{partial('public/header')}}
<script>
$(document).ready(function() {
	
$('#oneid').change(function(){
	$("#stwoid").html('<img src="'+siteUrl+'static/images/loading.gif" />');
	var oneid = $(this).children('option:selected').val();  //弹出select的值
	
	if(oneid==0){
		$("#stwoid").html('');
	 }else{
		$.ajax({
			type: "POST",
			url:  "{{url('group/manage/ajax_getcate')}}",
			data: {oneid:oneid},
			success: function(msg){ 
				$("#stwoid").html(msg);				
			}
		});
	
	}
	
});

});
</script>

<div class="midder">
    <h1>申请创建小组</h1>
    <div class="mc">

        <div class="cleft">
        <form method="POST" action="{{url('group/manage/create')}}"  enctype="multipart/form-data" onsubmit="return createGroup(this);">
        <table width="100%" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <th>小组名称：</th>
                <td><input type="text" value="" maxlength="32" size="31" name="groupname" tabindex="1" class="txt"    placeholder="给小组起个醒目的名称吧"></td>
            </tr>
            <tr>
                <th>小组分类：</th>
                <td>
<select id="oneid" name="oneid" class="txt">
<option value="0">请选择</option>
{% for vo in arrOne %}
<option value="{{vo['cateid']}}">{{vo['catename']}}</option>
{% endfor %}
</select>&nbsp;
<span id="stwoid"></span>
	</td>
            </tr>            
            <tr>
                <th>小组描述：</th>
                <td><textarea style="width:500px;height:200px;" name="groupdesc" tabindex="2" id="editor_mini" class="txt"   placeholder="介绍一下小组是干什么的，它将作为黑板报显示"></textarea></td>
            </tr>
                                                        
            <tr>
                <th>小组图标：</th>
                <td><input type="file" name="picfile" accept="image/gif,image/png,image/jpg,image/jpeg" class="txt" tabindex="4" single><span class="tip">(仅支持jpg，gif，png格式图片)</span></td>
            </tr>           
            <tr>
                <th>&nbsp;</th>
                <td>
                <label><input type="checkbox" checked  name="grp_agreement" id="grp_agreement" value="1" tabindex="5">&nbsp;我已认真阅读并同意《社区指导原则》和《免责声明》</label>
                <input type="hidden" name="{{security.getTokenKey()}}" value="{{security.getToken()}}">
                </td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td><input class="submit" type="submit" value="创建小组" tabindex="6"/></td>
            </tr>
        </table>
        </form>
        </div>
    
        <div class="cright"></div>

	</div>

</div>                
